package com.softa.dao.mapper.relation.system;

import java.util.List;

import com.softa.bean.DataGridModel;
import com.softa.dao.model.SysResource;
import org.apache.ibatis.annotations.Param;

public interface SysResourceRelationMapper {
	/**
     * 更具条件查询
     * @param dataGrid
     * @return 
     * @see
     */
    List<SysResource> selectByCondition(DataGridModel dataGrid);
    
    /**
    * 分页数量
    * @param gridModel
    * @return 
    * @see
    */
   long selectCountByCondition(DataGridModel gridModel);
   
   
   List<SysResource> selectByParam(DataGridModel dataGrid);
   
   int  deleteByIdAndParentIds(@Param("ids")String ids);
   
   List<SysResource> selectAllByParentId(@Param("parentId")Long parentId);
   
   List<SysResource> selectResourceByUser(@Param("parentId")Long parentId, @Param("username")String username);
}